#coding=UTF-8
from google.appengine.ext import db
from google.appengine.api import users

class WordList(db.Model):
  #id = db.IntegerProperty(required=True)
  # original
  word = db.StringProperty(required=True)
  translation = db.StringProperty()
  pronunciation = db.StringProperty()
  flag = db.IntegerProperty()
  # other options
  weight = db.IntegerProperty() # the weight of the current word
  # relation
  owner = db.UserProperty(required=True)

class WordUser(db.Model): 
  user = db.UserProperty(required=True)
  firstLogin = db.DateTimeProperty()
  lastLogin = db.DateTimeProperty()
  loginTime = db.IntegerProperty()
    
